import { put, takeLatest } from 'redux-saga/effects';
import { AUTH_REQUEST, AUTH_SUCCESS } from '../actionTypes';
import user from '../api/user';

function* getInfoTest() {
  const result = yield user.info();

  yield put({
    type:AUTH_SUCCESS,
    data:{ data:'day08',message:'msg',code:0, }
  })
}

export function* postTest() {
  const result = yield user.info();

  yield put({
    type:AUTH_SUCCESS,
    data:{ data:'day08',message:'msg',code:0, }
  })
}

export default [
  takeLatest(AUTH_REQUEST,postTest)
]